/* Mock 数据 */
const _product = [
  {
    id: 1,
    title: "iPhone12",
    price: 8000,
    inventory: 8 // 库存
  },
  {
    id: 2,
    title: "外星人电脑",
    price: 30000,
    inventory: 5
  }, 
  {
    id: 3,
    title: "益达口香糖",
    price: 8,
    inventory: 90
  },
  {
    id:4,
    title:"钢铁侠手办mk-45",
    price: 3000,
    inventory: 19,
  },
  {
    id:5,
    title:"香飘飘奶茶",
    price: 6,
    inventory: 200,
  }
]
// function getProducts(){
//     // 异步请求
//     return _product;
// }
const getProducts = (params) => {
  // 异步请求
  return _product;
}
export {
  getProducts,
}